{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "6eb18950",
   "metadata": {},
   "outputs": [],
   "source": [
    "import json\n",
    "data = [['111','乾','金'],\n",
    "        ['011','兑','水'],\n",
    "       ['101','离','火'],\n",
    "       ['001','震','木'],\n",
    "       ['110','巽','木'],\n",
    "       ['010','坎','水'],\n",
    "       ['100','艮','土'],\n",
    "       ['000','坤','土']]\n",
    "data1 = [\n",
    "    ['木','火','木生火，体生用，凶'],\n",
    "    ['火','土','火生土，体生用，凶'],\n",
    "    ['土','金','土生金，体生用，凶'],\n",
    "    ['金','水','金生水，体生用，凶'],\n",
    "    ['水','木','水生木，体生用，凶'],           \n",
    "    ['火','木','木生火，用生体，吉'],\n",
    "    ['土','火','火生土，用生体，吉'],\n",
    "    ['金','土','土生金，用生体，吉'],\n",
    "    ['水','金','金生水，用生体，吉'],\n",
    "    ['木','水','水生木，用生体，吉'],      \n",
    "    ['火','金','火克金，体克用，吉'],\n",
    "    ['土','水','土克水，体克用，吉'],\n",
    "    ['金','木','金克木，体克用，吉'],\n",
    "    ['水','火','水克火，体克用，吉'],\n",
    "    ['木','土','木克土，体克用，吉'],      \n",
    "    ['金','火','火克金，用克体，凶'],\n",
    "    ['水','土','土克水，用克体，凶'],\n",
    "    ['木','金','金克木，用克体，凶'],\n",
    "    ['火','水','水克火，用克体，凶'],\n",
    "    ['土','木','木克土，用克体，凶'],      \n",
    "    ['金','金','比和，吉'],\n",
    "    ['水','水','比和，吉'],\n",
    "    ['木','木','比和，吉'],\n",
    "    ['火','火','比和，吉'],\n",
    "    ['土','土','比和，吉'],               \n",
    "]\n",
    "d1 = {'111111': '乾', '000000': '坤', '100010': '屯', '010001': '蒙', '111010': '需', '010111': '讼',\n",
    "                     '010000': '师', '000010': '比', '111011': '小畜', '110111': '履', '111000': '泰', '000111': '否',\n",
    "                     '101111': '同人', '111101': '大有', '001000': '谦', '000100': '豫', '100110': '随', '011001': '蛊',\n",
    "                     '110000': '临', '000011': '观', '100101': '噬嗑', '101001': '贲', '000001': '剥', '100000': '复',\n",
    "                     '100111': '无妄', '111001': '大畜', '100001': '颐', '011110': '大过', '010010': '坎', '101101': '离',\n",
    "                     '001110': '咸', '011100': '恒', '001111': '遯', '111100': '大壮', '000101': '晋', '101000': '明夷',\n",
    "                     '101011': '家人', '110101': '睽', '001010': '蹇', '010100': '解', '110001': '损', '100011': '益',\n",
    "                     '111110': '夬', '011111': '姤', '000110': '萃', '011000': '升', '010110': '困', '011010': '井',\n",
    "                     '101110': '革', '011101': '鼎', '100100': '震', '001001': '艮', '001011': '渐', '110100': '归妹',\n",
    "                     '101100': '丰', '001101': '旅', '011011': '巽', '110110': '兑', '010011': '涣', '110010': '节',\n",
    "                     '110011': '中孚', '001100': '小过', '101010': '既济', '010101': '未济'}\n",
    "\n",
    "d2 = {'111111': '天天', '000000': '地地', '100010': '水雷', '010001': '山水', '111010': '水天', '010111': '天水',\n",
    "                      '010000': '地水', '000010': '水地', '111011': '风天', '110111': '天泽', '111000': '地天', '000111': '天地',\n",
    "                      '101111': '天火', '111101': '火天', '001000': '地山', '000100': '雷地', '100110': '泽雷', '011001': '山风',\n",
    "                      '110000': '地泽', '000011': '风地', '100101': '火雷', '101001': '山火', '000001': '山地', '100000': '地雷',\n",
    "                      '100111': '天雷', '111001': '山天', '100001': '山雷', '011110': '泽风', '010010': '水水', '101101': '火火',\n",
    "                      '001110': '泽山', '011100': '雷风', '001111': '天山', '111100': '雷天', '000101': '火地', '101000': '地火',\n",
    "                      '101011': '风火', '110101': '火泽', '001010': '水山', '010100': '雷水', '110001': '山泽', '100011': '风雷',\n",
    "                      '111110': '泽天', '011111': '天风', '000110': '泽地', '011000': '地风', '010110': '泽水', '011010': '水风',\n",
    "                      '101110': '泽火', '011101': '火风', '100100': '雷雷', '001001': '山山', '001011': '风山', '110100': '雷泽',\n",
    "                      '101100': '雷火', '001101': '火山', '011011': '风风', '110110': '泽泽', '010011': '风水', '110010': '水泽',\n",
    "                      '110011': '风泽', '001100': '雷山', '101010': '水火', '010101': '火水'}\n",
    "d3={'111111': {0: '乾：元亨，利贞。',\n",
    "  1: '初九：潜龙，勿用。',\n",
    "  2: '九二：见龙在田，利见大人。',\n",
    "  3: '九三：君子终日乾乾，夕惕若，厉，无咎。',\n",
    "  4: '九四：或跃在渊，无咎。',\n",
    "  5: '九五：飞龙在天，利见大人。',\n",
    "  6: '上九：亢龙有悔。',\n",
    "  7: '用九：见群龙无首，吉。'},\n",
    " '000000': {0: '坤：元亨，利牝马之贞。君子有攸往，先迷后得主，利西南得朋，东北丧朋。安贞，吉。',\n",
    "  1: '初六：履霜，坚冰至。',\n",
    "  2: '六二：直，方，大，不习无不利。',\n",
    "  3: '六三：含章可贞。或从王事，无成有终。',\n",
    "  4: '六四：括囊；无咎，无誉。',\n",
    "  5: '六五：黄裳，元吉。',\n",
    "  6: '上六：龙战于野，其血玄黄。',\n",
    "  7: '用六：利永贞。'},\n",
    " '100010': {0: '屯：元亨，利贞，勿用有攸往，利建侯。',\n",
    "  1: '初九：磐桓；利居贞，利建侯。',\n",
    "  2: '六二：屯如邅如，乘马班如。匪寇婚媾，女子贞不字，十年乃字。',\n",
    "  3: '六三：即鹿无虞，惟入于林中，君子几不如舍，往吝。',\n",
    "  4: '六四：乘马班如，求婚媾，往吉，无不利。',\n",
    "  5: '九五：屯其膏，小贞吉，大贞凶。',\n",
    "  6: '上六：乘马班如，泣血涟如。'},\n",
    " '010001': {0: '蒙：亨。匪我求童蒙，童蒙求我。初筮告，再三渎，渎则不告。利贞。',\n",
    "  1: '初六：发蒙，利用刑人，用说桎梏，以往吝。',\n",
    "  2: '九二：包蒙吉；纳妇吉；子克家。',\n",
    "  3: '六三：勿用取女；见金夫，不有躬，无攸利。',\n",
    "  4: '六四：困蒙，吝。',\n",
    "  5: '六五：童蒙，吉。',\n",
    "  6: '上九：击蒙；不利为寇，利御寇。'},\n",
    " '111010': {0: '需：有孚，光亨，贞吉。利涉大川。',\n",
    "  1: '初九：需于郊。利用恒，无咎。',\n",
    "  2: '九二：需于沙。小有言，终吉。',\n",
    "  3: '九三：需于泥，致寇至。',\n",
    "  4: '六四：需于血，出自穴。',\n",
    "  5: '九五：需于酒食，贞吉。',\n",
    "  6: '上六：入于穴，有不速之客三人来，敬之终吉。'},\n",
    " '010111': {0: '讼：有孚，窒。惕中吉。终凶。利见大人，不利涉大川。',\n",
    "  1: '初六：不永所事，小有言，终吉。',\n",
    "  2: '九二：不克讼，归而逋，其邑人三百户，无眚。',\n",
    "  3: '六三：食旧德，贞厉，终吉，或从王事，无成。',\n",
    "  4: '九四：不克讼，复即命渝，安贞吉。',\n",
    "  5: '九五：讼元吉。',\n",
    "  6: '上九：或锡之鞶带，终朝三褫之。'},\n",
    " '010000': {0: '师：贞，丈人，吉无咎。',\n",
    "  1: '初六：师出以律，否臧凶。',\n",
    "  2: '九二：在师中吉，无咎，王三锡命。',\n",
    "  3: '六三：师或舆尸，凶。',\n",
    "  4: '六四：师左次，无咎。',\n",
    "  5: '六五：田有禽，利执言，无咎。长子帅师，弟子舆尸，贞凶。',\n",
    "  6: '上六：大君有命，开国承家，小人勿用。'},\n",
    " '000010': {0: '比：吉。原筮元永贞，无咎。不宁方来，后夫凶。',\n",
    "  1: '初六：有孚，比之，无咎。有孚盈缶，终来有它吉。',\n",
    "  2: '六二：比之自内，贞吉。',\n",
    "  3: '六三：比之匪人。',\n",
    "  4: '六四：外比之，贞吉。',\n",
    "  5: '九五：显比，王用三驱，失前禽。邑人不诫，吉。',\n",
    "  6: '上六：比之无首，凶。'},\n",
    " '111011': {0: '小畜：亨。密云不雨，自我西郊。',\n",
    "  1: '初九：复自道，何其咎，吉。',\n",
    "  2: '九二：牵复，吉。',\n",
    "  3: '九三：舆说辐，夫妻反目。',\n",
    "  4: '六四：有孚，血去惕出，无咎。',\n",
    "  5: '九五：有孚挛如，富以其邻。',\n",
    "  6: '上九：既雨既处，尚德载，妇贞厉。月几望，君子征凶。'},\n",
    " '110111': {0: '履虎尾，不咥人，亨。',\n",
    "  1: '初九：素履，往无咎。',\n",
    "  2: '九二：履道坦坦，幽人贞吉。',\n",
    "  3: '六三：眇能视，跛能履，履虎尾，咥人，凶。武人为于大君。',\n",
    "  4: '九四：履虎尾，诉诉，终吉。',\n",
    "  5: '九五：夬履，贞厉。',\n",
    "  6: '上九：视履考祥，其旋元吉。'},\n",
    " '111000': {0: '泰：小往大来，吉亨。',\n",
    "  1: '初九：拔茅茹，以其汇，征吉。',\n",
    "  2: '九二：包荒，用冯河，不遐遗，朋亡，得尚于中行。',\n",
    "  3: '九三：无平不陂，无往不复，艰贞无咎。勿恤其孚，于食有福。',\n",
    "  4: '六四：翩翩，不富，以其邻，不戒以孚。',\n",
    "  5: '六五：帝乙归妹，以祉元吉。',\n",
    "  6: '上六：城复于隍，勿用师。自邑告命，贞吝。'},\n",
    " '000111': {0: '否之匪人，不利君子贞，大往小来。',\n",
    "  1: '初六：拔茅茹，以其汇，贞吉亨。',\n",
    "  2: '六二：包承。小人吉，大人否，亨。',\n",
    "  3: '六三：包羞。',\n",
    "  4: '九四：有命，无咎，畴离祉。',\n",
    "  5: '九五：休否，大人吉。其亡其亡，系于苞桑。',\n",
    "  6: '上九：倾否，先否后喜。'},\n",
    " '101111': {0: '同人于野，亨。利涉大川，利君子贞。',\n",
    "  1: '初九：同人于门，无咎。',\n",
    "  2: '六二：同人于宗，吝。',\n",
    "  3: '九三：伏戎于莽，升其高陵，三岁不兴。',\n",
    "  4: '九四：乘其墉，弗克攻，吉。',\n",
    "  5: '九五：同人，先号啕而后笑。大师克相遇。',\n",
    "  6: '上九：同人于郊，无悔。'},\n",
    " '111101': {0: '大有：元亨。',\n",
    "  1: '初九：无交害，匪咎，艰则无咎。',\n",
    "  2: '九二：大车以载，有攸往，无咎。',\n",
    "  3: '九三：公用亨于天子，小人弗克。',\n",
    "  4: '九四：匪其彭，无咎。',\n",
    "  5: '六五：厥孚交如，威如；吉。',\n",
    "  6: '上九：自天佑之，吉无不利。'},\n",
    " '001000': {0: '谦：亨，君子有终。',\n",
    "  1: '初六：谦谦君子，用涉大川，吉。',\n",
    "  2: '六二：鸣谦，贞吉。',\n",
    "  3: '九三：劳谦，君子有终，吉。',\n",
    "  4: '六四：无不利，撝谦。',\n",
    "  5: '六五：不富，以其邻，利用侵伐，无不利。',\n",
    "  6: '上六：鸣谦，利用行师，征邑国。'},\n",
    " '000100': {0: '豫：利建侯，行师。',\n",
    "  1: '初六：鸣豫，凶。',\n",
    "  2: '六二：介于石，不终日，贞吉。',\n",
    "  3: '六三：盱豫，悔。迟有悔。',\n",
    "  4: '九四：由豫，大有得。勿疑。朋盍簪。',\n",
    "  5: '六五：贞疾，恒不死。',\n",
    "  6: '上六：冥豫，成有渝，无咎。'},\n",
    " '100110': {0: '随：元亨利贞，无咎。',\n",
    "  1: '初九：官有渝，贞吉。出门交有功。',\n",
    "  2: '六二：系小子，失丈夫。',\n",
    "  3: '六三：系丈夫，失小子。随有求得，利居贞。',\n",
    "  4: '九四：随有获，贞凶。有孚在道，以明，何咎。',\n",
    "  5: '九五：孚于嘉，吉。',\n",
    "  6: '上六：拘系之，乃从维之。王用亨于西山。'},\n",
    " '011001': {0: '蛊：元亨，利涉大川。先甲三日，后甲三日。',\n",
    "  1: '初六：干父之蛊，有子，考无咎，厉终吉。',\n",
    "  2: '九二：干母之蛊，不可贞。',\n",
    "  3: '九三：干父之蛊，小有悔，无大咎。',\n",
    "  4: '六四：裕父之蛊，往见吝。',\n",
    "  5: '六五：干父之蛊，用誉。',\n",
    "  6: '上九：不事王侯，高尚其事。'},\n",
    " '110000': {0: '临：元，亨，利，贞。至于八月有凶。',\n",
    "  1: '初九：咸临，贞吉。',\n",
    "  2: '九二：咸临，吉无不利。',\n",
    "  3: '六三：甘临，无攸利。既忧之，无咎。',\n",
    "  4: '六四：至临，无咎。',\n",
    "  5: '六五：知临，大君之宜，吉。',\n",
    "  6: '上六：敦临，吉无咎。'},\n",
    " '000011': {0: '观：盥而不荐，有孚顒若。',\n",
    "  1: '初六：童观，小人无咎，君子吝。',\n",
    "  2: '六二：闚观，利女贞。',\n",
    "  3: '六三：观我生，进退。',\n",
    "  4: '六四：观国之光，利用宾于王。',\n",
    "  5: '九五：观我生，君子无咎。',\n",
    "  6: '上九：观其生，君子无咎。'},\n",
    " '100101': {0: '噬嗑：亨。利用狱。',\n",
    "  1: '初九：屦校灭趾，无咎。',\n",
    "  2: '六二：噬肤灭鼻，无咎。',\n",
    "  3: '六三：噬腊肉，遇毒；小吝，无咎。',\n",
    "  4: '九四：噬乾胏，得金矢，利艰贞，吉。',\n",
    "  5: '六五：噬乾肉，得黄金，贞厉，无咎。',\n",
    "  6: '上九：何校灭耳，凶。'},\n",
    " '101001': {0: '贲：亨。小利有攸往。',\n",
    "  1: '初九：贲其趾，舍车而徒。',\n",
    "  2: '六二：贲其须。',\n",
    "  3: '九三：贲如濡如，永贞吉。',\n",
    "  4: '六四：贲如皤如，白马翰如，匪寇婚媾。',\n",
    "  5: '六五：贲于丘园，束帛戋戋，吝，终吉。',\n",
    "  6: '上九：白贲，无咎。'},\n",
    " '000001': {0: '剥：不利有攸往。',\n",
    "  1: '初六：剥床以足，蔑贞凶。',\n",
    "  2: '六二：剥床以辨，蔑贞凶。',\n",
    "  3: '六三：剥之，无咎。',\n",
    "  4: '六四：剥床以肤，凶。',\n",
    "  5: '六五：贯鱼，以宫人宠，无不利。',\n",
    "  6: '上九：硕果不食，君子得舆，小人剥庐。'},\n",
    " '100000': {0: '复：亨。出入无疾，朋来无咎。反复其道，七日来复，利有攸往。',\n",
    "  1: '初九：不远复，无祗悔，元吉。',\n",
    "  2: '六二：休复，吉。',\n",
    "  3: '六三：频复，厉无咎。',\n",
    "  4: '六四：中行独复。',\n",
    "  5: '六五：敦复，无悔。',\n",
    "  6: '上六：迷复，凶，有灾眚。用行师，终有大败，以其国君，凶；至于十年，不克征。'},\n",
    " '100111': {0: '无妄：元亨，利贞。其匪正有眚，不利有攸往。',\n",
    "  1: '初九：无妄，往吉。',\n",
    "  2: '六二：不耕获，不灾畲，则利有攸往。',\n",
    "  3: '六三：无妄之灾，或系之牛，行人之得，邑人之灾。',\n",
    "  4: '九四：可贞，无咎。',\n",
    "  5: '九五：无妄之疾，勿药有喜。',\n",
    "  6: '上九：无妄，行有眚，无攸利。'},\n",
    " '111001': {0: '大畜：利贞，不家食吉，利涉大川。',\n",
    "  1: '初九：有厉利已。',\n",
    "  2: '九二：舆说輹。',\n",
    "  3: '九三：良马逐，利艰贞。曰闲舆卫，利有攸往。',\n",
    "  4: '六四：童牛之牿，元吉。',\n",
    "  5: '六五：豶豕之牙，吉。',\n",
    "  6: '上九：何天之衢，亨。'},\n",
    " '100001': {0: '颐：贞吉。观颐，自求口实。',\n",
    "  1: '初九：舍尔灵龟，观我朵颐，凶。',\n",
    "  2: '六二：颠颐，拂经，于丘颐，征凶。',\n",
    "  3: '六三：拂颐，贞凶，十年勿用，无攸利。',\n",
    "  4: '六四：颠颐，吉，虎视眈眈，其欲逐逐，无咎。',\n",
    "  5: '六五：拂经，居贞吉，不可涉大川。',\n",
    "  6: '上九：由颐，厉吉，利涉大川。'},\n",
    " '011110': {0: '大过：栋桡，利有攸往，亨。',\n",
    "  1: '初六：藉用白茅，无咎。',\n",
    "  2: '九二：枯杨生稊，老夫得其女妻，无不利。',\n",
    "  3: '九三：栋桡，凶。',\n",
    "  4: '九四：栋隆，吉；有它吝。',\n",
    "  5: '九五：枯杨生华，老妇得士夫，无咎无誉。',\n",
    "  6: '上六：过涉灭顶，凶，无咎。'},\n",
    " '010010': {0: '坎：习坎，有孚，维心亨，行有尚。',\n",
    "  1: '初六：习坎，入于坎窞，凶。',\n",
    "  2: '九二：坎有险，求小得。',\n",
    "  3: '六三：来之坎坎，险且枕，入于坎窞，勿用。',\n",
    "  4: '六四：樽酒簋贰，用缶，纳约自牖，终无咎。',\n",
    "  5: '九五：坎不盈，祗既平，无咎。',\n",
    "  6: '上六：系用徽纆，置于丛棘，三岁不得，凶。'},\n",
    " '101101': {0: '离：利贞，亨。畜牝牛，吉。',\n",
    "  1: '初九：履错然，敬之无咎。',\n",
    "  2: '六二：黄离，元吉。',\n",
    "  3: '九三：日昃之离，不鼓缶而歌，则大耋之嗟，凶。',\n",
    "  4: '九四：突如其来如，焚如，死如，弃如。',\n",
    "  5: '六五：出涕沱若，戚嗟若，吉。',\n",
    "  6: '上九：王用出征，有嘉折首，获匪其丑，无咎。'},\n",
    " '001110': {0: '咸，亨，利贞，取女吉。',\n",
    "  1: '初六，咸其拇。',\n",
    "  2: '六二，咸其腓，凶，居吉。',\n",
    "  3: '九三，咸其股，执其随，往吝。',\n",
    "  4: '九四，贞吉，悔亡，憧憧往来，朋从尔思。',\n",
    "  5: '九五，咸其脢，无悔。',\n",
    "  6: '上六，咸其辅颊舌。'},\n",
    " '011100': {0: '恒：亨，无咎，利贞，利有攸往。',\n",
    "  1: '初六：浚恒，贞凶，无攸利。',\n",
    "  2: '九二：悔亡。',\n",
    "  3: '九三：不恒其德，或承之羞，贞吝。',\n",
    "  4: '九四：田无禽。',\n",
    "  5: '六五：恒其德，贞，妇人吉，夫子凶。',\n",
    "  6: '上六：振恒，凶。'},\n",
    " '001111': {0: '遯：亨，小利贞。',\n",
    "  1: '初六：遯尾，厉，勿用有攸往。',\n",
    "  2: '六二：执之用黄牛之革，莫之胜说。',\n",
    "  3: '九三：系遯，有疾厉，畜臣妾吉。',\n",
    "  4: '九四：好遯，君子吉，小人否。',\n",
    "  5: '九五：嘉遯，贞吉。',\n",
    "  6: '上九：肥遯，无不利。'},\n",
    " '111100': {0: '大壮：利贞。',\n",
    "  1: '初九：壮于趾，征凶，有孚。',\n",
    "  2: '九二：贞吉。',\n",
    "  3: '九三：小人用壮，君子用罔，贞厉。羝羊触藩，羸其角。',\n",
    "  4: '九四：贞吉悔亡，藩决不羸，壮于大舆之輹。',\n",
    "  5: '六五：丧羊于易，无悔。',\n",
    "  6: '上六：羝羊触藩，不能退，不能遂，无攸利，艰则吉。'},\n",
    " '000101': {0: '晋：康侯用锡马蕃庶，昼日三接。',\n",
    "  1: '初六：晋如，摧如，贞吉。罔孚，裕无咎。',\n",
    "  2: '六二：晋如，愁如，贞吉。受兹介福，于其王母。',\n",
    "  3: '六三：众允，悔亡。',\n",
    "  4: '九四：晋如硕鼠，贞厉。',\n",
    "  5: '六五：悔亡，失得勿恤，往吉，无不利。',\n",
    "  6: '上九：晋其角，维用伐邑，厉吉无咎，贞吝。'},\n",
    " '101000': {0: '明夷：利艰贞。',\n",
    "  1: '初九：明夷于飞，垂其翼。君子于行，三日不食，有攸往，主人有言。',\n",
    "  2: '六二：明夷，夷于左股，用拯马壮，吉。',\n",
    "  3: '九三：明夷于南狩，得其大首，不可疾贞。',\n",
    "  4: '六四：入于左腹，获明夷之心，出于门庭。',\n",
    "  5: '六五：箕子之明夷，利贞。',\n",
    "  6: '上六：不明晦，初登于天，后入于地。'},\n",
    " '101011': {0: '家人：利女贞。',\n",
    "  1: '初九：闲有家，悔亡。',\n",
    "  2: '六二：无攸遂，在中馈，贞吉。',\n",
    "  3: '九三：家人嗃嗃，悔厉吉；妇子嘻嘻，终吝。',\n",
    "  4: '六四：富家，大吉。',\n",
    "  5: '九五：王假有家，勿恤，往吉。',\n",
    "  6: '上九：有孚威如，终吉。'},\n",
    " '110101': {0: '睽：小事吉。',\n",
    "  1: '初九：悔亡，丧马勿逐，自复；见恶人无咎。',\n",
    "  2: '九二：遇主于巷，无咎。',\n",
    "  3: '六三：见舆曳，其牛掣，其人天且劓，无初有终。',\n",
    "  4: '九四：睽孤，遇元夫，交孚，厉无咎。',\n",
    "  5: '六五：悔亡，厥宗噬肤，往何咎。',\n",
    "  6: '上九：睽孤，见豕负涂，载鬼一车，先张之弧，后说之弧，匪寇婚媾，往遇雨则吉。'},\n",
    " '001010': {0: '蹇：利西南，不利东北；利见大人，贞吉。',\n",
    "  1: '初六：往蹇，来誉。',\n",
    "  2: '六二：王臣蹇蹇，匪躬之故。',\n",
    "  3: '九三：往蹇来反。',\n",
    "  4: '六四：往蹇来连。',\n",
    "  5: '九五：大蹇朋来。',\n",
    "  6: '上六：往蹇来硕，吉；利见大人。'},\n",
    " '010100': {0: '解：利西南，无所往，其来复吉。有攸往，夙吉。',\n",
    "  1: '初六：无咎。',\n",
    "  2: '九二：田获三狐，得黄矢，贞吉。',\n",
    "  3: '六三：负且乘，致寇至，贞吝。',\n",
    "  4: '九四：解而拇，朋至斯孚。',\n",
    "  5: '六五：君子维有解，吉；有孚于小人。',\n",
    "  6: '上六：公用射隼于高墉之上，获之，无不利。'},\n",
    " '110001': {0: '损：有孚，元吉，无咎，可贞，利有攸往。曷之用，二簋可用享。',\n",
    "  1: '初九：巳事遄往，无咎，酌损之。',\n",
    "  2: '九二：利贞，征凶，弗损，益之。',\n",
    "  3: '六三：三人行，则损一人；一人行，则得其友。',\n",
    "  4: '六四：损其疾，使遄有喜，无咎。',\n",
    "  5: '六五：或益之，十朋之龟弗克违，元吉。',\n",
    "  6: '上九：弗损益之，无咎，贞吉，有攸往，得臣无家。'},\n",
    " '100011': {0: '益：利有攸往，利涉大川。',\n",
    "  1: '初九：利用为大作，元吉，无咎。',\n",
    "  2: '六二：或益之，十朋之龟弗克违，永贞吉。王用享于帝，吉。',\n",
    "  3: '六三：益之用凶事，无咎。有孚中行，告公用圭。',\n",
    "  4: '六四：中行，告公从。利用为依迁国。',\n",
    "  5: '九五：有孚惠心，勿问元吉。有孚惠我德。',\n",
    "  6: '上九：莫益之，或击之，立心勿恒，凶。'},\n",
    " '111110': {0: '夬：扬于王庭，孚号，有厉，告自邑，不利即戎，利有攸往。',\n",
    "  1: '初九：壮于前趾，往不胜为咎。',\n",
    "  2: '九二：惕号，莫夜有戎，勿恤。',\n",
    "  3: '九三：壮于頄，有凶。君子夬夬，独行，遇雨，若濡，有愠，无咎。',\n",
    "  4: '九四：臀无肤，其行次且。牵羊悔亡，闻言不信。',\n",
    "  5: '九五：苋陆夬夬，中行无咎。',\n",
    "  6: '上六：无号，终有凶。'},\n",
    " '011111': {0: '姤：女壮，勿用取女。',\n",
    "  1: '初六：系于金柅，贞吉，有攸往，见凶，羸豕孚蹢躅。',\n",
    "  2: '九二：包有鱼，无咎，不利宾。',\n",
    "  3: '九三：臀无肤，其行次且，厉，无大咎。',\n",
    "  4: '九四：包无鱼，起凶。',\n",
    "  5: '九五：以杞包瓜，含章，有陨自天。',\n",
    "  6: '上九：姤其角，吝，无咎。'},\n",
    " '000110': {0: '萃：亨。王假有庙，利见大人，亨，利贞。用大牲吉，利有攸往。',\n",
    "  1: '初六：有孚不终，乃乱乃萃，若号一握为笑，勿恤，往无咎。',\n",
    "  2: '六二：引吉，无咎，孚乃利用禴。',\n",
    "  3: '六三：萃如，嗟如，无攸利，往无咎，小吝。',\n",
    "  4: '九四：大吉，无咎。',\n",
    "  5: '九五：萃有位，无咎。匪孚，元永贞，悔亡。',\n",
    "  6: '上六：赍咨涕洟，无咎。'},\n",
    " '011000': {0: '升：元亨，用见大人，勿恤，南征吉。',\n",
    "  1: '初六：允升，大吉。',\n",
    "  2: '九二：孚乃利用禴，无咎。',\n",
    "  3: '九三：升虚邑。',\n",
    "  4: '六四：王用亨于岐山，吉无咎。',\n",
    "  5: '六五：贞吉，升阶。',\n",
    "  6: '上六：冥升，利于不息之贞。'},\n",
    " '010110': {0: '困：亨，贞，大人吉，无咎，有言不信。',\n",
    "  1: '初六：臀困于株木，入于幽谷，三岁不觌。',\n",
    "  2: '九二：困于酒食，朱绂方来，利用享祀，征凶，无咎。',\n",
    "  3: '六三：困于石，据于蒺蔾，入于其宫，不见其妻，凶。',\n",
    "  4: '九四：来徐徐，困于金车，吝，有终。',\n",
    "  5: '九五：劓刖，困于赤绂，乃徐有说，利用祭祀。',\n",
    "  6: '上六：困于葛藟，于臲卼，曰动悔。有悔，征吉。'},\n",
    " '011010': {0: '井：改邑不改井，无丧无得，往来井井。汔至，亦未繘井，羸其瓶，凶。',\n",
    "  1: '初六：井泥不食，旧井无禽。',\n",
    "  2: '九二：井谷射鲋，瓮敝漏。',\n",
    "  3: '九三：井渫不食，为我心恻，可用汲，王明，并受其福。',\n",
    "  4: '六四：井甃，无咎。',\n",
    "  5: '九五：井冽，寒泉食。',\n",
    "  6: '上六：井收勿幕，有孚元吉。'},\n",
    " '101110': {0: '革：巳日乃孚，元亨利贞，悔亡。',\n",
    "  1: '初九：巩用黄牛之革。',\n",
    "  2: '六二：巳日乃革之，征吉，无咎。',\n",
    "  3: '九三：征凶，贞厉，革言三就，有孚。',\n",
    "  4: '九四：悔亡，有孚改命，吉。',\n",
    "  5: '九五：大人虎变，未占有孚。',\n",
    "  6: '上六：君子豹变，小人革面，征凶，居贞吉。'},\n",
    " '011101': {0: '鼎：元吉，亨。',\n",
    "  1: '初六：鼎颠趾，利出否，得妾以其子，无咎。',\n",
    "  2: '九二：鼎有实，我仇有疾，不我能即，吉。',\n",
    "  3: '九三：鼎耳革，其行塞，雉膏不食，方雨亏悔，终吉。',\n",
    "  4: '九四：鼎折足，覆公餗，其形渥，凶。',\n",
    "  5: '六五：鼎黄耳，金铉，利贞。',\n",
    "  6: '上九：鼎玉铉，大吉，无不利。'},\n",
    " '100100': {0: '震：亨。震来虩虩，笑言哑哑。震惊百里，不丧匕鬯。',\n",
    "  1: '初九：震来虩虩，后笑言哑哑，吉。',\n",
    "  2: '六二：震来厉，亿丧贝，跻于九陵，勿逐，七日得。',\n",
    "  3: '六三：震苏苏，震行无眚。',\n",
    "  4: '九四：震遂泥。',\n",
    "  5: '六五：震往来厉，亿无丧，有事。',\n",
    "  6: '上六：震索索，视矍矍，征凶。震不于其躬，于其邻，无咎。婚媾有言。'},\n",
    " '001001': {0: '艮：艮其背，不获其身，行其庭，不见其人，无咎。',\n",
    "  1: '初六：艮其趾，无咎，利永贞。',\n",
    "  2: '六二：艮其腓，不拯其随，其心不快。',\n",
    "  3: '九三：艮其限，列其夤，厉薰心。',\n",
    "  4: '六四：艮其身，无咎。',\n",
    "  5: '六五：艮其辅，言有序，悔亡。',\n",
    "  6: '上九：敦艮，吉。'},\n",
    " '001011': {0: '渐：女归吉，利贞。',\n",
    "  1: '初六：鸿渐于干，小子厉，有言，无咎。',\n",
    "  2: '六二：鸿渐于磐，饮食衎衎，吉。',\n",
    "  3: '九三：鸿渐于陆，夫征不复，妇孕不育，凶；利御寇。',\n",
    "  4: '六四：鸿渐于木，或得其桷，无咎。',\n",
    "  5: '九五：鸿渐于陵，妇三岁不孕，终莫之胜，吉。',\n",
    "  6: '上九：鸿渐于陆，其羽可用为仪，吉。'},\n",
    " '110100': {0: '归妹：征凶，无攸利。',\n",
    "  1: '初九：归妹以娣，跛能履，征吉。',\n",
    "  2: '九二：眇能视，利幽人之贞。',\n",
    "  3: '六三：归妹以须，反归以娣。',\n",
    "  4: '九四：归妹愆期，迟归有时。',\n",
    "  5: '六五：帝乙归妹，其君之袂，不如其娣之袂良，月几望，吉。',\n",
    "  6: '上六：女承筐无实，士刲羊无血，无攸利。'},\n",
    " '101100': {0: '丰：亨，王假之，勿忧，宜日中。',\n",
    "  1: '初九：遇其配主，虽旬无咎，往有尚。',\n",
    "  2: '六二：丰其蔀，日中见斗，往得疑疾，有孚发若，吉。',\n",
    "  3: '九三：丰其沛，日中见沬，折其右肱，无咎。',\n",
    "  4: '九四：丰其蔀，日中见斗，遇其夷主，吉。',\n",
    "  5: '六五：来章，有庆誉，吉。',\n",
    "  6: '上六：丰其屋，蔀其家，闚其户，阒其无人，三岁不觌，凶。'},\n",
    " '001101': {0: '旅：小亨，旅贞吉。',\n",
    "  1: '初六：旅琐琐，斯其所取灾。',\n",
    "  2: '六二：旅即次，怀其资，得童仆贞。',\n",
    "  3: '九三：旅焚其次，丧其童仆，贞厉。',\n",
    "  4: '九四：旅于处，得其资斧，我心不快。',\n",
    "  5: '六五：射雉一矢亡，终以誉命。',\n",
    "  6: '上九：鸟焚其巢，旅人先笑后号啕。丧牛于易，凶。'},\n",
    " '011011': {0: '巽：小亨，利攸往，利见大人。',\n",
    "  1: '初六：进退，利武人之贞。',\n",
    "  2: '九二：巽在床下，用史巫纷若，吉，无咎。',\n",
    "  3: '九三：频巽，吝。',\n",
    "  4: '六四：悔亡，田获三品。',\n",
    "  5: '九五：贞吉悔亡，无不利。无初有终，先庚三日，后庚三日，吉。',\n",
    "  6: '上九：巽在床下，丧其资斧，贞凶。'},\n",
    " '110110': {0: '兑：亨，利贞。',\n",
    "  1: '初九：和兑，吉。',\n",
    "  2: '九二：孚兑，吉，悔亡。',\n",
    "  3: '六三：来兑，凶。',\n",
    "  4: '九四：商兑，未宁，介疾有喜。',\n",
    "  5: '九五：孚于剥，有厉。',\n",
    "  6: '上六：引兑。'},\n",
    " '010011': {0: '涣：亨。王假有庙，利涉大川，利贞。',\n",
    "  1: '初六：用拯马壮，吉。',\n",
    "  2: '九二：涣奔其机，悔亡。',\n",
    "  3: '六三：涣其躬，无悔。',\n",
    "  4: '六四：涣其群，元吉。涣有丘，匪夷所思。',\n",
    "  5: '九五：涣汗其大号，涣王居，无咎。',\n",
    "  6: '上九：涣其血，去逖出，无咎。'},\n",
    " '110010': {0: '节：亨。苦节，不可贞。',\n",
    "  1: '初九：不出户庭，无咎。',\n",
    "  2: '九二：不出门庭，凶。',\n",
    "  3: '六三：不节若，则嗟若，无咎。',\n",
    "  4: '六四：安节，亨。',\n",
    "  5: '九五：甘节，吉；往有尚。',\n",
    "  6: '上六：苦节，贞凶，悔亡。'},\n",
    " '110011': {0: '中孚：豚鱼吉，利涉大川，利贞。',\n",
    "  1: '初九：虞吉，有它不燕。',\n",
    "  2: '九二：鸣鹤在阴，其子和之，我有好爵，吾与尔靡之。',\n",
    "  3: '六三：得敌，或鼓或罢，或泣或歌。',\n",
    "  4: '六四：月几望，马匹亡，无咎。',\n",
    "  5: '九五：有孚挛如，无咎。',\n",
    "  6: '上九：翰音登于天，贞凶。'},\n",
    " '001100': {0: '小过：亨，利贞，可小事，不可大事。飞鸟遗之音，不宜上，宜下，大吉。',\n",
    "  1: '初六：飞鸟以凶。',\n",
    "  2: '六二：过其祖，遇其妣；不及其君，遇其臣；无咎。',\n",
    "  3: '九三：弗过防之，从或戕之，凶。',\n",
    "  4: '九四：无咎，弗过遇之。往厉必戒，勿用永贞。',\n",
    "  5: '六五：密云不雨，自我西郊，公弋取彼在穴。',\n",
    "  6: '上六：弗遇过之，飞鸟离之，凶，是谓灾眚。'},\n",
    " '101010': {0: '既济：亨，小利贞，初吉终乱。',\n",
    "  1: '初九：曳其轮，濡其尾，无咎。',\n",
    "  2: '六二：妇丧其茀，勿逐，七日得。',\n",
    "  3: '九三：高宗伐鬼方，三年克之，小人勿用。',\n",
    "  4: '六四：繻有衣袽，终日戒。',\n",
    "  5: '九五：东邻杀牛，不如西邻之禴祭，实受其福。',\n",
    "  6: '上六：濡其首，厉。'},\n",
    " '010101': {0: '未济：亨，小狐汔济，濡其尾，无攸利。',\n",
    "  1: '初六：濡其尾，吝。',\n",
    "  2: '九二：曳其轮，贞吉。',\n",
    "  3: '六三：未济，征凶，利涉大川。',\n",
    "  4: '九四：贞吉，悔亡，震用伐鬼方，三年有赏于大国。',\n",
    "  5: '六五：贞吉，无悔，君子之光，有孚，吉。',\n",
    "  6: '上九：有孚于饮酒，无咎，濡其首，有孚失是。'}}\n",
    "d4 = {'乾': {0: '乾：元亨，利贞。',\n",
    "  1: '初九：潜龙，勿用。',\n",
    "  2: '九二：见龙在田，利见大人。',\n",
    "  3: '九三：君子终日乾乾，夕惕若，厉，无咎。',\n",
    "  4: '九四：或跃在渊，无咎。',\n",
    "  5: '九五：飞龙在天，利见大人。',\n",
    "  6: '上九：亢龙有悔。',\n",
    "  7: '用九：见群龙无首，吉。'},\n",
    " '坤': {0: '坤：元亨，利牝马之贞。君子有攸往，先迷后得主，利西南得朋，东北丧朋。安贞，吉。',\n",
    "  1: '初六：履霜，坚冰至。',\n",
    "  2: '六二：直，方，大，不习无不利。',\n",
    "  3: '六三：含章可贞。或从王事，无成有终。',\n",
    "  4: '六四：括囊；无咎，无誉。',\n",
    "  5: '六五：黄裳，元吉。',\n",
    "  6: '上六：龙战于野，其血玄黄。',\n",
    "  7: '用六：利永贞。'},\n",
    " '屯': {0: '屯：元亨，利贞，勿用有攸往，利建侯。',\n",
    "  1: '初九：磐桓；利居贞，利建侯。',\n",
    "  2: '六二：屯如邅如，乘马班如。匪寇婚媾，女子贞不字，十年乃字。',\n",
    "  3: '六三：即鹿无虞，惟入于林中，君子几不如舍，往吝。',\n",
    "  4: '六四：乘马班如，求婚媾，往吉，无不利。',\n",
    "  5: '九五：屯其膏，小贞吉，大贞凶。',\n",
    "  6: '上六：乘马班如，泣血涟如。'},\n",
    " '蒙': {0: '蒙：亨。匪我求童蒙，童蒙求我。初筮告，再三渎，渎则不告。利贞。',\n",
    "  1: '初六：发蒙，利用刑人，用说桎梏，以往吝。',\n",
    "  2: '九二：包蒙吉；纳妇吉；子克家。',\n",
    "  3: '六三：勿用取女；见金夫，不有躬，无攸利。',\n",
    "  4: '六四：困蒙，吝。',\n",
    "  5: '六五：童蒙，吉。',\n",
    "  6: '上九：击蒙；不利为寇，利御寇。'},\n",
    " '需': {0: '需：有孚，光亨，贞吉。利涉大川。',\n",
    "  1: '初九：需于郊。利用恒，无咎。',\n",
    "  2: '九二：需于沙。小有言，终吉。',\n",
    "  3: '九三：需于泥，致寇至。',\n",
    "  4: '六四：需于血，出自穴。',\n",
    "  5: '九五：需于酒食，贞吉。',\n",
    "  6: '上六：入于穴，有不速之客三人来，敬之终吉。'},\n",
    " '讼': {0: '讼：有孚，窒。惕中吉。终凶。利见大人，不利涉大川。',\n",
    "  1: '初六：不永所事，小有言，终吉。',\n",
    "  2: '九二：不克讼，归而逋，其邑人三百户，无眚。',\n",
    "  3: '六三：食旧德，贞厉，终吉，或从王事，无成。',\n",
    "  4: '九四：不克讼，复即命渝，安贞吉。',\n",
    "  5: '九五：讼元吉。',\n",
    "  6: '上九：或锡之鞶带，终朝三褫之。'},\n",
    " '师': {0: '师：贞，丈人，吉无咎。',\n",
    "  1: '初六：师出以律，否臧凶。',\n",
    "  2: '九二：在师中吉，无咎，王三锡命。',\n",
    "  3: '六三：师或舆尸，凶。',\n",
    "  4: '六四：师左次，无咎。',\n",
    "  5: '六五：田有禽，利执言，无咎。长子帅师，弟子舆尸，贞凶。',\n",
    "  6: '上六：大君有命，开国承家，小人勿用。'},\n",
    " '比': {0: '比：吉。原筮元永贞，无咎。不宁方来，后夫凶。',\n",
    "  1: '初六：有孚，比之，无咎。有孚盈缶，终来有它吉。',\n",
    "  2: '六二：比之自内，贞吉。',\n",
    "  3: '六三：比之匪人。',\n",
    "  4: '六四：外比之，贞吉。',\n",
    "  5: '九五：显比，王用三驱，失前禽。邑人不诫，吉。',\n",
    "  6: '上六：比之无首，凶。'},\n",
    " '小畜': {0: '小畜：亨。密云不雨，自我西郊。',\n",
    "  1: '初九：复自道，何其咎，吉。',\n",
    "  2: '九二：牵复，吉。',\n",
    "  3: '九三：舆说辐，夫妻反目。',\n",
    "  4: '六四：有孚，血去惕出，无咎。',\n",
    "  5: '九五：有孚挛如，富以其邻。',\n",
    "  6: '上九：既雨既处，尚德载，妇贞厉。月几望，君子征凶。'},\n",
    " '履': {0: '履虎尾，不咥人，亨。',\n",
    "  1: '初九：素履，往无咎。',\n",
    "  2: '九二：履道坦坦，幽人贞吉。',\n",
    "  3: '六三：眇能视，跛能履，履虎尾，咥人，凶。武人为于大君。',\n",
    "  4: '九四：履虎尾，诉诉，终吉。',\n",
    "  5: '九五：夬履，贞厉。',\n",
    "  6: '上九：视履考祥，其旋元吉。'},\n",
    " '泰': {0: '泰：小往大来，吉亨。',\n",
    "  1: '初九：拔茅茹，以其汇，征吉。',\n",
    "  2: '九二：包荒，用冯河，不遐遗，朋亡，得尚于中行。',\n",
    "  3: '九三：无平不陂，无往不复，艰贞无咎。勿恤其孚，于食有福。',\n",
    "  4: '六四：翩翩，不富，以其邻，不戒以孚。',\n",
    "  5: '六五：帝乙归妹，以祉元吉。',\n",
    "  6: '上六：城复于隍，勿用师。自邑告命，贞吝。'},\n",
    " '否': {0: '否之匪人，不利君子贞，大往小来。',\n",
    "  1: '初六：拔茅茹，以其汇，贞吉亨。',\n",
    "  2: '六二：包承。小人吉，大人否，亨。',\n",
    "  3: '六三：包羞。',\n",
    "  4: '九四：有命，无咎，畴离祉。',\n",
    "  5: '九五：休否，大人吉。其亡其亡，系于苞桑。',\n",
    "  6: '上九：倾否，先否后喜。'},\n",
    " '同人': {0: '同人于野，亨。利涉大川，利君子贞。',\n",
    "  1: '初九：同人于门，无咎。',\n",
    "  2: '六二：同人于宗，吝。',\n",
    "  3: '九三：伏戎于莽，升其高陵，三岁不兴。',\n",
    "  4: '九四：乘其墉，弗克攻，吉。',\n",
    "  5: '九五：同人，先号啕而后笑。大师克相遇。',\n",
    "  6: '上九：同人于郊，无悔。'},\n",
    " '大有': {0: '大有：元亨。',\n",
    "  1: '初九：无交害，匪咎，艰则无咎。',\n",
    "  2: '九二：大车以载，有攸往，无咎。',\n",
    "  3: '九三：公用亨于天子，小人弗克。',\n",
    "  4: '九四：匪其彭，无咎。',\n",
    "  5: '六五：厥孚交如，威如；吉。',\n",
    "  6: '上九：自天佑之，吉无不利。'},\n",
    " '谦': {0: '谦：亨，君子有终。',\n",
    "  1: '初六：谦谦君子，用涉大川，吉。',\n",
    "  2: '六二：鸣谦，贞吉。',\n",
    "  3: '九三：劳谦，君子有终，吉。',\n",
    "  4: '六四：无不利，撝谦。',\n",
    "  5: '六五：不富，以其邻，利用侵伐，无不利。',\n",
    "  6: '上六：鸣谦，利用行师，征邑国。'},\n",
    " '豫': {0: '豫：利建侯，行师。',\n",
    "  1: '初六：鸣豫，凶。',\n",
    "  2: '六二：介于石，不终日，贞吉。',\n",
    "  3: '六三：盱豫，悔。迟有悔。',\n",
    "  4: '九四：由豫，大有得。勿疑。朋盍簪。',\n",
    "  5: '六五：贞疾，恒不死。',\n",
    "  6: '上六：冥豫，成有渝，无咎。'},\n",
    " '随': {0: '随：元亨利贞，无咎。',\n",
    "  1: '初九：官有渝，贞吉。出门交有功。',\n",
    "  2: '六二：系小子，失丈夫。',\n",
    "  3: '六三：系丈夫，失小子。随有求得，利居贞。',\n",
    "  4: '九四：随有获，贞凶。有孚在道，以明，何咎。',\n",
    "  5: '九五：孚于嘉，吉。',\n",
    "  6: '上六：拘系之，乃从维之。王用亨于西山。'},\n",
    " '蛊': {0: '蛊：元亨，利涉大川。先甲三日，后甲三日。',\n",
    "  1: '初六：干父之蛊，有子，考无咎，厉终吉。',\n",
    "  2: '九二：干母之蛊，不可贞。',\n",
    "  3: '九三：干父之蛊，小有悔，无大咎。',\n",
    "  4: '六四：裕父之蛊，往见吝。',\n",
    "  5: '六五：干父之蛊，用誉。',\n",
    "  6: '上九：不事王侯，高尚其事。'},\n",
    " '临': {0: '临：元，亨，利，贞。至于八月有凶。',\n",
    "  1: '初九：咸临，贞吉。',\n",
    "  2: '九二：咸临，吉无不利。',\n",
    "  3: '六三：甘临，无攸利。既忧之，无咎。',\n",
    "  4: '六四：至临，无咎。',\n",
    "  5: '六五：知临，大君之宜，吉。',\n",
    "  6: '上六：敦临，吉无咎。'},\n",
    " '观': {0: '观：盥而不荐，有孚顒若。',\n",
    "  1: '初六：童观，小人无咎，君子吝。',\n",
    "  2: '六二：闚观，利女贞。',\n",
    "  3: '六三：观我生，进退。',\n",
    "  4: '六四：观国之光，利用宾于王。',\n",
    "  5: '九五：观我生，君子无咎。',\n",
    "  6: '上九：观其生，君子无咎。'},\n",
    " '噬嗑': {0: '噬嗑：亨。利用狱。',\n",
    "  1: '初九：屦校灭趾，无咎。',\n",
    "  2: '六二：噬肤灭鼻，无咎。',\n",
    "  3: '六三：噬腊肉，遇毒；小吝，无咎。',\n",
    "  4: '九四：噬乾胏，得金矢，利艰贞，吉。',\n",
    "  5: '六五：噬乾肉，得黄金，贞厉，无咎。',\n",
    "  6: '上九：何校灭耳，凶。'},\n",
    " '贲': {0: '贲：亨。小利有攸往。',\n",
    "  1: '初九：贲其趾，舍车而徒。',\n",
    "  2: '六二：贲其须。',\n",
    "  3: '九三：贲如濡如，永贞吉。',\n",
    "  4: '六四：贲如皤如，白马翰如，匪寇婚媾。',\n",
    "  5: '六五：贲于丘园，束帛戋戋，吝，终吉。',\n",
    "  6: '上九：白贲，无咎。'},\n",
    " '剥': {0: '剥：不利有攸往。',\n",
    "  1: '初六：剥床以足，蔑贞凶。',\n",
    "  2: '六二：剥床以辨，蔑贞凶。',\n",
    "  3: '六三：剥之，无咎。',\n",
    "  4: '六四：剥床以肤，凶。',\n",
    "  5: '六五：贯鱼，以宫人宠，无不利。',\n",
    "  6: '上九：硕果不食，君子得舆，小人剥庐。'},\n",
    " '复': {0: '复：亨。出入无疾，朋来无咎。反复其道，七日来复，利有攸往。',\n",
    "  1: '初九：不远复，无祗悔，元吉。',\n",
    "  2: '六二：休复，吉。',\n",
    "  3: '六三：频复，厉无咎。',\n",
    "  4: '六四：中行独复。',\n",
    "  5: '六五：敦复，无悔。',\n",
    "  6: '上六：迷复，凶，有灾眚。用行师，终有大败，以其国君，凶；至于十年，不克征。'},\n",
    " '无妄': {0: '无妄：元亨，利贞。其匪正有眚，不利有攸往。',\n",
    "  1: '初九：无妄，往吉。',\n",
    "  2: '六二：不耕获，不灾畲，则利有攸往。',\n",
    "  3: '六三：无妄之灾，或系之牛，行人之得，邑人之灾。',\n",
    "  4: '九四：可贞，无咎。',\n",
    "  5: '九五：无妄之疾，勿药有喜。',\n",
    "  6: '上九：无妄，行有眚，无攸利。'},\n",
    " '大畜': {0: '大畜：利贞，不家食吉，利涉大川。',\n",
    "  1: '初九：有厉利已。',\n",
    "  2: '九二：舆说輹。',\n",
    "  3: '九三：良马逐，利艰贞。曰闲舆卫，利有攸往。',\n",
    "  4: '六四：童牛之牿，元吉。',\n",
    "  5: '六五：豶豕之牙，吉。',\n",
    "  6: '上九：何天之衢，亨。'},\n",
    " '颐': {0: '颐：贞吉。观颐，自求口实。',\n",
    "  1: '初九：舍尔灵龟，观我朵颐，凶。',\n",
    "  2: '六二：颠颐，拂经，于丘颐，征凶。',\n",
    "  3: '六三：拂颐，贞凶，十年勿用，无攸利。',\n",
    "  4: '六四：颠颐，吉，虎视眈眈，其欲逐逐，无咎。',\n",
    "  5: '六五：拂经，居贞吉，不可涉大川。',\n",
    "  6: '上九：由颐，厉吉，利涉大川。'},\n",
    " '大过': {0: '大过：栋桡，利有攸往，亨。',\n",
    "  1: '初六：藉用白茅，无咎。',\n",
    "  2: '九二：枯杨生稊，老夫得其女妻，无不利。',\n",
    "  3: '九三：栋桡，凶。',\n",
    "  4: '九四：栋隆，吉；有它吝。',\n",
    "  5: '九五：枯杨生华，老妇得士夫，无咎无誉。',\n",
    "  6: '上六：过涉灭顶，凶，无咎。'},\n",
    " '坎': {0: '坎：习坎，有孚，维心亨，行有尚。',\n",
    "  1: '初六：习坎，入于坎窞，凶。',\n",
    "  2: '九二：坎有险，求小得。',\n",
    "  3: '六三：来之坎坎，险且枕，入于坎窞，勿用。',\n",
    "  4: '六四：樽酒簋贰，用缶，纳约自牖，终无咎。',\n",
    "  5: '九五：坎不盈，祗既平，无咎。',\n",
    "  6: '上六：系用徽纆，置于丛棘，三岁不得，凶。'},\n",
    " '离': {0: '离：利贞，亨。畜牝牛，吉。',\n",
    "  1: '初九：履错然，敬之无咎。',\n",
    "  2: '六二：黄离，元吉。',\n",
    "  3: '九三：日昃之离，不鼓缶而歌，则大耋之嗟，凶。',\n",
    "  4: '九四：突如其来如，焚如，死如，弃如。',\n",
    "  5: '六五：出涕沱若，戚嗟若，吉。',\n",
    "  6: '上九：王用出征，有嘉折首，获匪其丑，无咎。'},\n",
    " '咸': {0: '咸，亨，利贞，取女吉。',\n",
    "  1: '初六，咸其拇。',\n",
    "  2: '六二，咸其腓，凶，居吉。',\n",
    "  3: '九三，咸其股，执其随，往吝。',\n",
    "  4: '九四，贞吉，悔亡，憧憧往来，朋从尔思。',\n",
    "  5: '九五，咸其脢，无悔。',\n",
    "  6: '上六，咸其辅颊舌。'},\n",
    " '恒': {0: '恒：亨，无咎，利贞，利有攸往。',\n",
    "  1: '初六：浚恒，贞凶，无攸利。',\n",
    "  2: '九二：悔亡。',\n",
    "  3: '九三：不恒其德，或承之羞，贞吝。',\n",
    "  4: '九四：田无禽。',\n",
    "  5: '六五：恒其德，贞，妇人吉，夫子凶。',\n",
    "  6: '上六：振恒，凶。'},\n",
    " '遯': {0: '遯：亨，小利贞。',\n",
    "  1: '初六：遯尾，厉，勿用有攸往。',\n",
    "  2: '六二：执之用黄牛之革，莫之胜说。',\n",
    "  3: '九三：系遯，有疾厉，畜臣妾吉。',\n",
    "  4: '九四：好遯，君子吉，小人否。',\n",
    "  5: '九五：嘉遯，贞吉。',\n",
    "  6: '上九：肥遯，无不利。'},\n",
    " '大壮': {0: '大壮：利贞。',\n",
    "  1: '初九：壮于趾，征凶，有孚。',\n",
    "  2: '九二：贞吉。',\n",
    "  3: '九三：小人用壮，君子用罔，贞厉。羝羊触藩，羸其角。',\n",
    "  4: '九四：贞吉悔亡，藩决不羸，壮于大舆之輹。',\n",
    "  5: '六五：丧羊于易，无悔。',\n",
    "  6: '上六：羝羊触藩，不能退，不能遂，无攸利，艰则吉。'},\n",
    " '晋': {0: '晋：康侯用锡马蕃庶，昼日三接。',\n",
    "  1: '初六：晋如，摧如，贞吉。罔孚，裕无咎。',\n",
    "  2: '六二：晋如，愁如，贞吉。受兹介福，于其王母。',\n",
    "  3: '六三：众允，悔亡。',\n",
    "  4: '九四：晋如硕鼠，贞厉。',\n",
    "  5: '六五：悔亡，失得勿恤，往吉，无不利。',\n",
    "  6: '上九：晋其角，维用伐邑，厉吉无咎，贞吝。'},\n",
    " '明夷': {0: '明夷：利艰贞。',\n",
    "  1: '初九：明夷于飞，垂其翼。君子于行，三日不食，有攸往，主人有言。',\n",
    "  2: '六二：明夷，夷于左股，用拯马壮，吉。',\n",
    "  3: '九三：明夷于南狩，得其大首，不可疾贞。',\n",
    "  4: '六四：入于左腹，获明夷之心，出于门庭。',\n",
    "  5: '六五：箕子之明夷，利贞。',\n",
    "  6: '上六：不明晦，初登于天，后入于地。'},\n",
    " '家人': {0: '家人：利女贞。',\n",
    "  1: '初九：闲有家，悔亡。',\n",
    "  2: '六二：无攸遂，在中馈，贞吉。',\n",
    "  3: '九三：家人嗃嗃，悔厉吉；妇子嘻嘻，终吝。',\n",
    "  4: '六四：富家，大吉。',\n",
    "  5: '九五：王假有家，勿恤，往吉。',\n",
    "  6: '上九：有孚威如，终吉。'},\n",
    " '睽': {0: '睽：小事吉。',\n",
    "  1: '初九：悔亡，丧马勿逐，自复；见恶人无咎。',\n",
    "  2: '九二：遇主于巷，无咎。',\n",
    "  3: '六三：见舆曳，其牛掣，其人天且劓，无初有终。',\n",
    "  4: '九四：睽孤，遇元夫，交孚，厉无咎。',\n",
    "  5: '六五：悔亡，厥宗噬肤，往何咎。',\n",
    "  6: '上九：睽孤，见豕负涂，载鬼一车，先张之弧，后说之弧，匪寇婚媾，往遇雨则吉。'},\n",
    " '蹇': {0: '蹇：利西南，不利东北；利见大人，贞吉。',\n",
    "  1: '初六：往蹇，来誉。',\n",
    "  2: '六二：王臣蹇蹇，匪躬之故。',\n",
    "  3: '九三：往蹇来反。',\n",
    "  4: '六四：往蹇来连。',\n",
    "  5: '九五：大蹇朋来。',\n",
    "  6: '上六：往蹇来硕，吉；利见大人。'},\n",
    " '解': {0: '解：利西南，无所往，其来复吉。有攸往，夙吉。',\n",
    "  1: '初六：无咎。',\n",
    "  2: '九二：田获三狐，得黄矢，贞吉。',\n",
    "  3: '六三：负且乘，致寇至，贞吝。',\n",
    "  4: '九四：解而拇，朋至斯孚。',\n",
    "  5: '六五：君子维有解，吉；有孚于小人。',\n",
    "  6: '上六：公用射隼于高墉之上，获之，无不利。'},\n",
    " '损': {0: '损：有孚，元吉，无咎，可贞，利有攸往。曷之用，二簋可用享。',\n",
    "  1: '初九：巳事遄往，无咎，酌损之。',\n",
    "  2: '九二：利贞，征凶，弗损，益之。',\n",
    "  3: '六三：三人行，则损一人；一人行，则得其友。',\n",
    "  4: '六四：损其疾，使遄有喜，无咎。',\n",
    "  5: '六五：或益之，十朋之龟弗克违，元吉。',\n",
    "  6: '上九：弗损益之，无咎，贞吉，有攸往，得臣无家。'},\n",
    " '益': {0: '益：利有攸往，利涉大川。',\n",
    "  1: '初九：利用为大作，元吉，无咎。',\n",
    "  2: '六二：或益之，十朋之龟弗克违，永贞吉。王用享于帝，吉。',\n",
    "  3: '六三：益之用凶事，无咎。有孚中行，告公用圭。',\n",
    "  4: '六四：中行，告公从。利用为依迁国。',\n",
    "  5: '九五：有孚惠心，勿问元吉。有孚惠我德。',\n",
    "  6: '上九：莫益之，或击之，立心勿恒，凶。'},\n",
    " '夬': {0: '夬：扬于王庭，孚号，有厉，告自邑，不利即戎，利有攸往。',\n",
    "  1: '初九：壮于前趾，往不胜为咎。',\n",
    "  2: '九二：惕号，莫夜有戎，勿恤。',\n",
    "  3: '九三：壮于頄，有凶。君子夬夬，独行，遇雨，若濡，有愠，无咎。',\n",
    "  4: '九四：臀无肤，其行次且。牵羊悔亡，闻言不信。',\n",
    "  5: '九五：苋陆夬夬，中行无咎。',\n",
    "  6: '上六：无号，终有凶。'},\n",
    " '姤': {0: '姤：女壮，勿用取女。',\n",
    "  1: '初六：系于金柅，贞吉，有攸往，见凶，羸豕孚蹢躅。',\n",
    "  2: '九二：包有鱼，无咎，不利宾。',\n",
    "  3: '九三：臀无肤，其行次且，厉，无大咎。',\n",
    "  4: '九四：包无鱼，起凶。',\n",
    "  5: '九五：以杞包瓜，含章，有陨自天。',\n",
    "  6: '上九：姤其角，吝，无咎。'},\n",
    " '萃': {0: '萃：亨。王假有庙，利见大人，亨，利贞。用大牲吉，利有攸往。',\n",
    "  1: '初六：有孚不终，乃乱乃萃，若号一握为笑，勿恤，往无咎。',\n",
    "  2: '六二：引吉，无咎，孚乃利用禴。',\n",
    "  3: '六三：萃如，嗟如，无攸利，往无咎，小吝。',\n",
    "  4: '九四：大吉，无咎。',\n",
    "  5: '九五：萃有位，无咎。匪孚，元永贞，悔亡。',\n",
    "  6: '上六：赍咨涕洟，无咎。'},\n",
    " '升': {0: '升：元亨，用见大人，勿恤，南征吉。',\n",
    "  1: '初六：允升，大吉。',\n",
    "  2: '九二：孚乃利用禴，无咎。',\n",
    "  3: '九三：升虚邑。',\n",
    "  4: '六四：王用亨于岐山，吉无咎。',\n",
    "  5: '六五：贞吉，升阶。',\n",
    "  6: '上六：冥升，利于不息之贞。'},\n",
    " '困': {0: '困：亨，贞，大人吉，无咎，有言不信。',\n",
    "  1: '初六：臀困于株木，入于幽谷，三岁不觌。',\n",
    "  2: '九二：困于酒食，朱绂方来，利用享祀，征凶，无咎。',\n",
    "  3: '六三：困于石，据于蒺蔾，入于其宫，不见其妻，凶。',\n",
    "  4: '九四：来徐徐，困于金车，吝，有终。',\n",
    "  5: '九五：劓刖，困于赤绂，乃徐有说，利用祭祀。',\n",
    "  6: '上六：困于葛藟，于臲卼，曰动悔。有悔，征吉。'},\n",
    " '井': {0: '井：改邑不改井，无丧无得，往来井井。汔至，亦未繘井，羸其瓶，凶。',\n",
    "  1: '初六：井泥不食，旧井无禽。',\n",
    "  2: '九二：井谷射鲋，瓮敝漏。',\n",
    "  3: '九三：井渫不食，为我心恻，可用汲，王明，并受其福。',\n",
    "  4: '六四：井甃，无咎。',\n",
    "  5: '九五：井冽，寒泉食。',\n",
    "  6: '上六：井收勿幕，有孚元吉。'},\n",
    " '革': {0: '革：巳日乃孚，元亨利贞，悔亡。',\n",
    "  1: '初九：巩用黄牛之革。',\n",
    "  2: '六二：巳日乃革之，征吉，无咎。',\n",
    "  3: '九三：征凶，贞厉，革言三就，有孚。',\n",
    "  4: '九四：悔亡，有孚改命，吉。',\n",
    "  5: '九五：大人虎变，未占有孚。',\n",
    "  6: '上六：君子豹变，小人革面，征凶，居贞吉。'},\n",
    " '鼎': {0: '鼎：元吉，亨。',\n",
    "  1: '初六：鼎颠趾，利出否，得妾以其子，无咎。',\n",
    "  2: '九二：鼎有实，我仇有疾，不我能即，吉。',\n",
    "  3: '九三：鼎耳革，其行塞，雉膏不食，方雨亏悔，终吉。',\n",
    "  4: '九四：鼎折足，覆公餗，其形渥，凶。',\n",
    "  5: '六五：鼎黄耳，金铉，利贞。',\n",
    "  6: '上九：鼎玉铉，大吉，无不利。'},\n",
    " '震': {0: '震：亨。震来虩虩，笑言哑哑。震惊百里，不丧匕鬯。',\n",
    "  1: '初九：震来虩虩，后笑言哑哑，吉。',\n",
    "  2: '六二：震来厉，亿丧贝，跻于九陵，勿逐，七日得。',\n",
    "  3: '六三：震苏苏，震行无眚。',\n",
    "  4: '九四：震遂泥。',\n",
    "  5: '六五：震往来厉，亿无丧，有事。',\n",
    "  6: '上六：震索索，视矍矍，征凶。震不于其躬，于其邻，无咎。婚媾有言。'},\n",
    " '艮': {0: '艮：艮其背，不获其身，行其庭，不见其人，无咎。',\n",
    "  1: '初六：艮其趾，无咎，利永贞。',\n",
    "  2: '六二：艮其腓，不拯其随，其心不快。',\n",
    "  3: '九三：艮其限，列其夤，厉薰心。',\n",
    "  4: '六四：艮其身，无咎。',\n",
    "  5: '六五：艮其辅，言有序，悔亡。',\n",
    "  6: '上九：敦艮，吉。'},\n",
    " '渐': {0: '渐：女归吉，利贞。',\n",
    "  1: '初六：鸿渐于干，小子厉，有言，无咎。',\n",
    "  2: '六二：鸿渐于磐，饮食衎衎，吉。',\n",
    "  3: '九三：鸿渐于陆，夫征不复，妇孕不育，凶；利御寇。',\n",
    "  4: '六四：鸿渐于木，或得其桷，无咎。',\n",
    "  5: '九五：鸿渐于陵，妇三岁不孕，终莫之胜，吉。',\n",
    "  6: '上九：鸿渐于陆，其羽可用为仪，吉。'},\n",
    " '归妹': {0: '归妹：征凶，无攸利。',\n",
    "  1: '初九：归妹以娣，跛能履，征吉。',\n",
    "  2: '九二：眇能视，利幽人之贞。',\n",
    "  3: '六三：归妹以须，反归以娣。',\n",
    "  4: '九四：归妹愆期，迟归有时。',\n",
    "  5: '六五：帝乙归妹，其君之袂，不如其娣之袂良，月几望，吉。',\n",
    "  6: '上六：女承筐无实，士刲羊无血，无攸利。'},\n",
    " '丰': {0: '丰：亨，王假之，勿忧，宜日中。',\n",
    "  1: '初九：遇其配主，虽旬无咎，往有尚。',\n",
    "  2: '六二：丰其蔀，日中见斗，往得疑疾，有孚发若，吉。',\n",
    "  3: '九三：丰其沛，日中见沬，折其右肱，无咎。',\n",
    "  4: '九四：丰其蔀，日中见斗，遇其夷主，吉。',\n",
    "  5: '六五：来章，有庆誉，吉。',\n",
    "  6: '上六：丰其屋，蔀其家，闚其户，阒其无人，三岁不觌，凶。'},\n",
    " '旅': {0: '旅：小亨，旅贞吉。',\n",
    "  1: '初六：旅琐琐，斯其所取灾。',\n",
    "  2: '六二：旅即次，怀其资，得童仆贞。',\n",
    "  3: '九三：旅焚其次，丧其童仆，贞厉。',\n",
    "  4: '九四：旅于处，得其资斧，我心不快。',\n",
    "  5: '六五：射雉一矢亡，终以誉命。',\n",
    "  6: '上九：鸟焚其巢，旅人先笑后号啕。丧牛于易，凶。'},\n",
    " '巽': {0: '巽：小亨，利攸往，利见大人。',\n",
    "  1: '初六：进退，利武人之贞。',\n",
    "  2: '九二：巽在床下，用史巫纷若，吉，无咎。',\n",
    "  3: '九三：频巽，吝。',\n",
    "  4: '六四：悔亡，田获三品。',\n",
    "  5: '九五：贞吉悔亡，无不利。无初有终，先庚三日，后庚三日，吉。',\n",
    "  6: '上九：巽在床下，丧其资斧，贞凶。'},\n",
    " '兑': {0: '兑：亨，利贞。',\n",
    "  1: '初九：和兑，吉。',\n",
    "  2: '九二：孚兑，吉，悔亡。',\n",
    "  3: '六三：来兑，凶。',\n",
    "  4: '九四：商兑，未宁，介疾有喜。',\n",
    "  5: '九五：孚于剥，有厉。',\n",
    "  6: '上六：引兑。'},\n",
    " '涣': {0: '涣：亨。王假有庙，利涉大川，利贞。',\n",
    "  1: '初六：用拯马壮，吉。',\n",
    "  2: '九二：涣奔其机，悔亡。',\n",
    "  3: '六三：涣其躬，无悔。',\n",
    "  4: '六四：涣其群，元吉。涣有丘，匪夷所思。',\n",
    "  5: '九五：涣汗其大号，涣王居，无咎。',\n",
    "  6: '上九：涣其血，去逖出，无咎。'},\n",
    " '节': {0: '节：亨。苦节，不可贞。',\n",
    "  1: '初九：不出户庭，无咎。',\n",
    "  2: '九二：不出门庭，凶。',\n",
    "  3: '六三：不节若，则嗟若，无咎。',\n",
    "  4: '六四：安节，亨。',\n",
    "  5: '九五：甘节，吉；往有尚。',\n",
    "  6: '上六：苦节，贞凶，悔亡。'},\n",
    " '中孚': {0: '中孚：豚鱼吉，利涉大川，利贞。',\n",
    "  1: '初九：虞吉，有它不燕。',\n",
    "  2: '九二：鸣鹤在阴，其子和之，我有好爵，吾与尔靡之。',\n",
    "  3: '六三：得敌，或鼓或罢，或泣或歌。',\n",
    "  4: '六四：月几望，马匹亡，无咎。',\n",
    "  5: '九五：有孚挛如，无咎。',\n",
    "  6: '上九：翰音登于天，贞凶。'},\n",
    " '小过': {0: '小过：亨，利贞，可小事，不可大事。飞鸟遗之音，不宜上，宜下，大吉。',\n",
    "  1: '初六：飞鸟以凶。',\n",
    "  2: '六二：过其祖，遇其妣；不及其君，遇其臣；无咎。',\n",
    "  3: '九三：弗过防之，从或戕之，凶。',\n",
    "  4: '九四：无咎，弗过遇之。往厉必戒，勿用永贞。',\n",
    "  5: '六五：密云不雨，自我西郊，公弋取彼在穴。',\n",
    "  6: '上六：弗遇过之，飞鸟离之，凶，是谓灾眚。'},\n",
    " '既济': {0: '既济：亨，小利贞，初吉终乱。',\n",
    "  1: '初九：曳其轮，濡其尾，无咎。',\n",
    "  2: '六二：妇丧其茀，勿逐，七日得。',\n",
    "  3: '九三：高宗伐鬼方，三年克之，小人勿用。',\n",
    "  4: '六四：繻有衣袽，终日戒。',\n",
    "  5: '九五：东邻杀牛，不如西邻之禴祭，实受其福。',\n",
    "  6: '上六：濡其首，厉。'},\n",
    " '未济': {0: '未济：亨，小狐汔济，濡其尾，无攸利。',\n",
    "  1: '初六：濡其尾，吝。',\n",
    "  2: '九二：曳其轮，贞吉。',\n",
    "  3: '六三：未济，征凶，利涉大川。',\n",
    "  4: '九四：贞吉，悔亡，震用伐鬼方，三年有赏于大国。',\n",
    "  5: '六五：贞吉，无悔，君子之光，有孚，吉。',\n",
    "  6: '上九：有孚于饮酒，无咎，濡其首，有孚失是。'}}\n",
    "d5 = {'111111': ['乾为天','1','寻找顶部','3'],\n",
    " '000000': ['坤为地','2','寻找底部','0'],\n",
    " '100010': ['水雷屯','3','初创艰难','1'],\n",
    " '010001': ['山水蒙','4','初期蒙昧','1'],\n",
    " '111010': ['水天需','5','耐心等待','1'],\n",
    " '010111': ['天水讼','6','争讼之道，遭遇波折','1'],\n",
    " '010000': ['地水师','7','用兵之道，发兵','2'],\n",
    " '000010': ['水地比','8','亲密比辅，依附','2'],\n",
    " '111011': ['风天小畜','9','小富即安，阴从阳、扶阳','2'],\n",
    " '110111': ['天泽履','10','居中上，小心行走，虽危无害','2'],\n",
    " '111000': ['地天泰','11','上下交通，见顶','3'],\n",
    " '000111': ['天地否','12','灾难极坏，见底','0'],\n",
    " '101111': ['风火同人','13','灾后重建，与人协作','1'],\n",
    " '111101': ['火天大有','14','盛世','3'],\n",
    " '001000': ['地山谦','15','谦逊、不骄逆','3'],\n",
    " '000100': ['雷地豫','16','欢乐，戒穷欢极乐','3'],\n",
    " '100110': ['泽雷随','17','从善，不违正道','3'],\n",
    " '011001': ['山风蛊','18','乱了，治蛊治乱之到','2'],\n",
    " '110000': ['地泽临','19','盛极而衰，统治、法制之道','2'],\n",
    " '000011': ['风地观','20','静态社会，让人观仰的盛世','2'],\n",
    " '100101': ['火雷噬嗑','21','乱世重典，用啮合的方法治狱','2'],\n",
    " '101001': ['山火贲','22','人心不古，华丽辞藻歌颂社会','1'],\n",
    " '000001': ['山地剥','23','剥落，衰败，剥极必复','1'],\n",
    " '100000': ['地雷复','24','生机回复','1'],\n",
    " '100111': ['天雷无妄','25','无妄，不妄动，大家不乱来，社会才能向好','1'],\n",
    " '111001': ['山天大畜','26','大蓄，大力聚集正能量，守正养贤','1'],\n",
    " '100001': ['山雷颐','27','颐养，自养，养人','2'],\n",
    " '011110': ['泽风大过','28','矫枉过正，生态失调了','2'],\n",
    " '010010': ['坎为水','29','陷入险境，脱险之法','1'],\n",
    " '101101': ['离为火','30','附丽，攀附贵人','2'],\n",
    " '001110': ['泽山咸','31','男女交感、娶妻','2'],\n",
    " '011100': ['雷风恒','32','恒久，持之以恒','2'],\n",
    " '001111': ['天山遁-遯','33','退避，遇乱世，身退而道亨','1'],\n",
    " '111100':[ '雷天大壮','34','盛世！不可恃强用壮','2'],\n",
    " '000101': ['火地晋','35','进长？归顺，见好就收','2'],\n",
    " '101000': ['地火明夷','36','明火入暗地，社会昏暗、光明泯灭，顺之则晋，逆之明夷','1'],\n",
    " '101011': ['风火家人','37','退而治家','1'],\n",
    " '110101': ['火泽睽','38','乖背睽违，鸡毛蒜皮的鸡飞狗跳','1'],\n",
    " '001010': ['水山蹇','39','艰难，至暗时刻，要，知进退、讲团结、守正固','0'],\n",
    " '010100': ['雷水解','40','纾解困难的道理','1'],\n",
    " '110001': ['山泽损','41','困难中，减损之道，在于损下益上，剥削下级、谄媚上级','0'],\n",
    " '100011': ['风雷益','42','幸福中，增益之道，在于损上益下，滋养下级、不能惯到上级','1'],\n",
    " '111110': ['泽天夬','43','决断，公开、公正、戒小人','1'],\n",
    " '011111': ['天风姤','44','相遇，交媾，忌滥交','1'],\n",
    " '000110': ['泽地萃','45','群英荟萃，聚集美德、正直，聚集力量','1'],\n",
    " '011000': ['地风升','46','上升，积小成大，顺势上升','2'],\n",
    " '010110': ['泽水困','47','穷困潦倒，原因？脱困方法','0'],\n",
    " '011010': ['水风井','48','水井养人的美德，穷的只剩一口井了','0'],\n",
    " '101110': ['泽火革','49','变革，沼泽下开始生火，把握时机、方法得当','1'],\n",
    " '011101': ['火风鼎','50','权力，法制，稳固','3'],\n",
    " '100100': ['震为雷','51','震慑！重典治世而恒通？法国大革命','2'],\n",
    " '001001': ['艮为山','52','抑止，收敛，低调','1'],\n",
    " '001011': ['风山渐','53','循序渐进，不可冒进，有心无力了','1'],\n",
    " '110100': ['雷泽归妹','54','嫁女，被动则吉，无力回天','1'],\n",
    " '101100': ['雷火丰','55','物质丰富，要保持，估计日后时日无多','1'],\n",
    " '001101': ['火山旅','56','行旅之道，山上起火了，跑路了','1'],\n",
    " '011011': ['巽为风','57','顺从，寄人篱下，要顺从','1'],\n",
    " '110110': ['兑为泽','58','欣悦，高兴，做人啦，开心最重要了，尽管什么都没有','1'],\n",
    " '010011': ['风水涣','59','涣散，一贫如洗','0'],\n",
    " '110010': ['节','60','节制，克制，忍','1'],\n",
    " '110011': ['中孚','61','中心诚信，再穷不能穷信仰','1'],\n",
    " '001100': ['小过','62','小事上可以浪一下，憋久了对身体不好','2'],\n",
    " '101010': ['既济','63','事虽成，但守成不易，见好就收，呼应乾为天','3'],\n",
    " '010101': ['未济','64','事未成，也有希望，呼应坤为地','0']}\n",
    "myData = {\n",
    "    '64卦':d1,\n",
    "    '64卦组成':d2,\n",
    "    '64卦内容1':d3,\n",
    "    '64卦内容2':d4,  \n",
    "    '64卦心得':d5,  \n",
    "    '八卦五行':data,\n",
    "    '体用生克':data1\n",
    "}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "2a80e57d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'111111': ['乾为天', '1', '寻找顶部', '3'],\n",
       " '000000': ['坤为地', '2', '寻找底部', '0'],\n",
       " '100010': ['水雷屯', '3', '初创艰难', '1'],\n",
       " '010001': ['山水蒙', '4', '初期蒙昧', '1'],\n",
       " '111010': ['水天需', '5', '耐心等待', '1'],\n",
       " '010111': ['天水讼', '6', '争讼之道，遭遇波折', '1'],\n",
       " '010000': ['地水师', '7', '用兵之道，发兵', '2'],\n",
       " '000010': ['水地比', '8', '亲密比辅，依附', '2'],\n",
       " '111011': ['风天小畜', '9', '小富即安，阴从阳、扶阳', '2'],\n",
       " '110111': ['天泽履', '10', '居中上，小心行走，虽危无害', '2'],\n",
       " '111000': ['地天泰', '11', '上下交通，见顶', '3'],\n",
       " '000111': ['天地否', '12', '灾难极坏，见底', '0'],\n",
       " '101111': ['风火同人', '13', '灾后重建，与人协作', '1'],\n",
       " '111101': ['火天大有', '14', '盛世', '3'],\n",
       " '001000': ['地山谦', '15', '谦逊、不骄逆', '3'],\n",
       " '000100': ['雷地豫', '16', '欢乐，戒穷欢极乐', '3'],\n",
       " '100110': ['泽雷随', '17', '从善，不违正道', '3'],\n",
       " '011001': ['山风蛊', '18', '乱了，治蛊治乱之到', '2'],\n",
       " '110000': ['地泽临', '19', '盛极而衰，统治、法制之道', '2'],\n",
       " '000011': ['风地观', '20', '静态社会，让人观仰的盛世', '2'],\n",
       " '100101': ['火雷噬嗑', '21', '乱世重典，用啮合的方法治狱', '2'],\n",
       " '101001': ['山火贲', '22', '人心不古，华丽辞藻歌颂社会', '1'],\n",
       " '000001': ['山地剥', '23', '剥落，衰败，剥极必复', '1'],\n",
       " '100000': ['地雷复', '24', '生机回复', '1'],\n",
       " '100111': ['天雷无妄', '25', '无妄，不妄动，大家不乱来，社会才能向好', '1'],\n",
       " '111001': ['山天大畜', '26', '大蓄，大力聚集正能量，守正养贤', '1'],\n",
       " '100001': ['山雷颐', '27', '颐养，自养，养人', '2'],\n",
       " '011110': ['泽风大过', '28', '矫枉过正，生态失调了', '2'],\n",
       " '010010': ['坎为水', '29', '陷入险境，脱险之法', '1'],\n",
       " '101101': ['离为火', '30', '附丽，攀附贵人', '2'],\n",
       " '001110': ['泽山咸', '31', '男女交感、娶妻', '2'],\n",
       " '011100': ['雷风恒', '32', '恒久，持之以恒', '2'],\n",
       " '001111': ['天山遁-遯', '33', '退避，遇乱世，身退而道亨', '1'],\n",
       " '111100': ['雷天大壮', '34', '盛世！不可恃强用壮', '2'],\n",
       " '000101': ['火地晋', '35', '进长？归顺，见好就收', '2'],\n",
       " '101000': ['地火明夷', '36', '明火入暗地，社会昏暗、光明泯灭，顺之则晋，逆之明夷', '1'],\n",
       " '101011': ['风火家人', '37', '退而治家', '1'],\n",
       " '110101': ['火泽睽', '38', '乖背睽违，鸡毛蒜皮的鸡飞狗跳', '1'],\n",
       " '001010': ['水山蹇', '39', '艰难，至暗时刻，要，知进退、讲团结、守正固', '0'],\n",
       " '010100': ['雷水解', '40', '纾解困难的道理', '1'],\n",
       " '110001': ['山泽损', '41', '困难中，减损之道，在于损下益上，剥削下级、谄媚上级', '0'],\n",
       " '100011': ['风雷益', '42', '幸福中，增益之道，在于损上益下，滋养下级、不能惯到上级', '1'],\n",
       " '111110': ['泽天夬', '43', '决断，公开、公正、戒小人', '1'],\n",
       " '011111': ['天风姤', '44', '相遇，交媾，忌滥交', '1'],\n",
       " '000110': ['泽地萃', '45', '群英荟萃，聚集美德、正直，聚集力量', '1'],\n",
       " '011000': ['地风升', '46', '上升，积小成大，顺势上升', '2'],\n",
       " '010110': ['泽水困', '47', '穷困潦倒，原因？脱困方法', '0'],\n",
       " '011010': ['水风井', '48', '水井养人的美德，穷的只剩一口井了', '0'],\n",
       " '101110': ['泽火革', '49', '变革，沼泽下开始生火，把握时机、方法得当', '1'],\n",
       " '011101': ['火风鼎', '50', '权力，法制，稳固', '3'],\n",
       " '100100': ['震为雷', '51', '震慑！重典治世而恒通？法国大革命', '2'],\n",
       " '001001': ['艮为山', '52', '抑止，收敛，低调', '1'],\n",
       " '001011': ['风山渐', '53', '循序渐进，不可冒进，有心无力了', '1'],\n",
       " '110100': ['雷泽归妹', '54', '嫁女，被动则吉，无力回天', '1'],\n",
       " '101100': ['雷火丰', '55', '物质丰富，要保持，估计日后时日无多', '1'],\n",
       " '001101': ['火山旅', '56', '行旅之道，山上起火了，跑路了', '1'],\n",
       " '011011': ['巽为风', '57', '顺从，寄人篱下，要顺从', '1'],\n",
       " '110110': ['兑为泽', '58', '欣悦，高兴，做人啦，开心最重要了，尽管什么都没有', '1'],\n",
       " '010011': ['风水涣', '59', '涣散，一贫如洗', '0'],\n",
       " '110010': ['节', '60', '节制，克制，忍', '1'],\n",
       " '110011': ['中孚', '61', '中心诚信，再穷不能穷信仰', '1'],\n",
       " '001100': ['小过', '62', '小事上可以浪一下，憋久了对身体不好', '2'],\n",
       " '101010': ['既济', '63', '事成，但守成不易，见好就收，呼应乾为地', '3'],\n",
       " '010101': ['未济', '64', '事未成，也有希望，呼应坤为地', '0']}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "d5"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "8c662bde",
   "metadata": {},
   "outputs": [],
   "source": [
    "d5 = {'111111': ['乾为天','1','寻找顶部','3'],\n",
    " '000000': ['坤为地','2','寻找底部','0'],\n",
    " '100010': ['水雷屯','3','初创艰难','1'],\n",
    " '010001': ['山水蒙','4','初期蒙昧','1'],\n",
    " '111010': ['水天需','5','耐心等待','1'],\n",
    " '010111': ['天水讼','6','争讼之道，遭遇波折','1'],\n",
    " '010000': ['地水师','7','用兵之道，发兵','2'],\n",
    " '000010': ['水地比','8','亲密比辅，依附','2'],\n",
    " '111011': ['风天小畜','9','小富即安，阴从阳、扶阳','2'],\n",
    " '110111': ['天泽履','10','居中上，小心行走，虽危无害','2'],\n",
    " '111000': ['地天泰','11','上下交通，见顶','2'],\n",
    " '000111': ['天地否','12','灾难极坏，见底','0'],\n",
    " '101111': ['风火同人','13','灾后重建，与人协作','1'],\n",
    " '111101': ['火天大有','14','盛世','3'],\n",
    " '001000': ['地山谦','15','谦逊、不骄逆','3'],\n",
    " '000100': ['雷地豫','16','欢乐，戒穷欢极乐','3'],\n",
    " '100110': ['泽雷随','17','从善，不违正道','3'],\n",
    " '011001': ['山风蛊','18','乱了，治蛊治乱之到','2'],\n",
    " '110000': ['地泽临','19','盛极而衰，统治、法制之道','2'],\n",
    " '000011': ['风地观','20','静态社会，让人观仰的盛世','2'],\n",
    " '100101': ['火雷噬嗑','21','乱世重典，用啮合的方法治狱','2'],\n",
    " '101001': ['山火贲','22','人心不古，华丽辞藻歌颂社会','1'],\n",
    " '000001': ['山地剥','23','剥落，衰败，剥极必复','1'],\n",
    " '100000': ['地雷复','24','生机回复','1'],\n",
    " '100111': ['天雷无妄','25','无妄，不妄动，大家不乱来，社会才能向好','1'],\n",
    " '111001': ['山天大畜','26','大蓄，大力聚集正能量，守正养贤','1'],\n",
    " '100001': ['山雷颐','27','颐养，自养，养人','2'],\n",
    " '011110': ['泽风大过','28','矫枉过正，生态失调了','2'],\n",
    " '010010': ['坎为水','29','陷入险境，脱险之法','1'],\n",
    " '101101': ['离为火','30','附丽，攀附贵人','2'],\n",
    " '001110': ['泽山咸','31','男女交感、娶妻','2'],\n",
    " '011100': ['雷风恒','32','恒久，持之以恒','2'],\n",
    " '001111': ['天山遁-遯','33','退避，遇乱世，身退而道亨','1'],\n",
    " '111100':[ '雷天大壮','34','盛世！不可恃强用壮','2'],\n",
    " '000101': ['火地晋','35','进长？归顺，见好就收','2'],\n",
    " '101000': ['地火明夷','36','明火入暗地，社会昏暗、光明泯灭，顺之则晋，逆之明夷','1'],\n",
    " '101011': ['风火家人','37','退而治家','1'],\n",
    " '110101': ['火泽睽','38','乖背睽违，鸡毛蒜皮的鸡飞狗跳','1'],\n",
    " '001010': ['水山蹇','39','艰难，至暗时刻，要，知进退、讲团结、守正固','0'],\n",
    " '010100': ['雷水解','40','纾解困难的道理','1'],\n",
    " '110001': ['山泽损','41','困难中，减损之道，在于损下益上，剥削下级、谄媚上级','0'],\n",
    " '100011': ['风雷益','42','幸福中，增益之道，在于损上益下，滋养下级、不能惯到上级','1'],\n",
    " '111110': ['泽天夬','43','决断，公开、公正、戒小人','1'],\n",
    " '011111': ['天风姤','44','相遇，交媾，忌滥交','1'],\n",
    " '000110': ['泽地萃','45','群英荟萃，聚集美德、正直，聚集力量','1'],\n",
    " '011000': ['地风升','46','上升，积小成大，顺势上升','2'],\n",
    " '010110': ['泽水困','47','穷困潦倒，原因？脱困方法','0'],\n",
    " '011010': ['水风井','48','水井养人的美德，穷的只剩一口井了','0'],\n",
    " '101110': ['泽火革','49','变革，沼泽下开始生火，把握时机、方法得当','1'],\n",
    " '011101': ['火风鼎','50','权力，法制，稳固','3'],\n",
    " '100100': ['震为雷','51','震慑！重典治世而恒通？法国大革命','2'],\n",
    " '001001': ['艮为山','52','抑止，收敛，低调','1'],\n",
    " '001011': ['风山渐','53','循序渐进，不可冒进，有心无力了','1'],\n",
    " '110100': ['雷泽归妹','54','嫁女，被动则吉，无力回天','1'],\n",
    " '101100': ['雷火丰','55','物质丰富，要保持，估计日后时日无多','1'],\n",
    " '001101': ['火山旅','56','行旅之道，山上起火了，跑路了','1'],\n",
    " '011011': ['巽为风','57','顺从，寄人篱下，要顺从','1'],\n",
    " '110110': ['兑为泽','58','欣悦，高兴，做人啦，开心最重要了，尽管什么都没有','1'],\n",
    " '010011': ['风水涣','59','涣散，一贫如洗','0'],\n",
    " '110010': ['节','60','节制，克制，忍','1'],\n",
    " '110011': ['中孚','61','中心诚信，再穷不能穷信仰','1'],\n",
    " '001100': ['小过','62','小事上可以浪一下，憋久了对身体不好','2'],\n",
    " '101010': ['既济','63','事成，但守成不易，见好就收，呼应乾为地','3'],\n",
    " '010101': ['未济','64','事未成，也有希望，呼应坤为地','0']}\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "1c11df7a",
   "metadata": {},
   "outputs": [],
   "source": [
    "with open('bagua.json','w') as f:\n",
    "    json.dump(myData,f)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
